#region Copyright
/// <copyright>
/// Copyright (c) 2007 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections;
using System.Collections.Generic;

namespace Osh.Epg
{
	/// <summary>
	/// Summary description for ChannelEpg.
	/// </summary>
	public class ChannelEpg
	{
		private DateTime _startTime;
		private DateTime _endTime;
		private EpgEventCollection _events;

		public ChannelEpg(DateTime startTime, DateTime endTime) : this(startTime, endTime, new List<EpgEvent>())
		{
		}
		
		public ChannelEpg(DateTime startTime, DateTime endTime, IList<EpgEvent> events)
		{
			_startTime = startTime;
			_endTime = endTime;
			_events = new EpgEventCollection(events);
		}

		public DateTime StartTime
		{
			get { return _startTime; }
		}

		public DateTime EndTime
		{
			get { return _endTime; }
		}

		public EpgEventCollection Events
		{
			get { return _events; }
		}
	}
}
